package com.meilai.project.service.middleware;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.entity.middleware.Attachment;
import com.meilai.project.vo.app.UploadBackVO;

import java.io.InputStream;

public interface AttachmentService extends IService<Attachment> {
    String store(InputStream inputStream, long contentLength, String contentType, String fileName);
    UploadBackVO storeBackVO(InputStream inputStream, long contentLength, String contentType, String fileName);
    String store2(String tenantName,InputStream inputStream, long contentLength, String contentType, String fileName);

    String storeSimple(InputStream inputStream, String fileName);
    UploadBackVO storeSimpleBackVO(InputStream inputStream, String fileName);

    //String storeToll(MultipartFile file, HttpSession session, HttpServletRequest request) throws Exception;

    Boolean deleteOne(String keyName);
}
